package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppFamilySetLevelDao;
import com.vf.admin.client.service.AppFamilySetLevelService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppFamilySetLevel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppFamilySetLevelServiceImpl implements AppFamilySetLevelService {

    @Autowired
    private AppFamilySetLevelDao appFamilySetLevelDao;

    @Override
    public List<AppFamilySetLevel> getLevelList() {
        return appFamilySetLevelDao.getLevelList();
    }

    @Override
    public List<AppFamilySetLevel> getLevelList(SplitPageBean splitPageBean) {
        return appFamilySetLevelDao.getLevelList(splitPageBean);
    }

    @Override
    public AppFamilySetLevel getLevelInfoByLevel(Integer level) {
        return appFamilySetLevelDao.getLevelInfoByLevel(level);
    }

    @Override
    public void saveOrAddLevel(AppFamilySetLevel appFamilySetLevel) {
        appFamilySetLevelDao.saveOrAddLevel(appFamilySetLevel);
    }

    @Override
    public AppFamilySetLevel getInfo(Integer id) {
        return appFamilySetLevelDao.getInfo(id);
    }
}
